<?php echo View::factory('header')->bind('page_title', $page_title) ?>
<div class="container">
	<div class="content-left">
		<div class="article">
			<div class="article-title">
				<a href="/detail/index/<?php echo $article['aid']?>"><?php echo $article['title']?></a>
			</div>
			<div class="article-info">
				<a href="/index/index/<?php echo $article['category']?>"><?php echo Kohana::$config->load('category')->get($article['category'])?></a>
				<?php if (0){?>
				<i class="article-mid">•</i>
				<a href="">tag</a>
				<?php }?>
				<span class="article-time"><?php echo substr($article['addtime'], 0, 16)?></span>
			</div>
			<div class="article-box">
				<?php if (0){?>
				<div class="article-img">
					<img src="http://static.cnbetacdn.com/newsimg/2013/1016/48_1381925131.png_w600.png"/>
				</div>
				<?php }?>
				<div class="article-content">
					<?php echo $article['content']?>
					<div class="article-from">
					<?php if (!empty($article['quote_from'])){?>
					（转自: <?php echo $article['quote_from']?>）
					<?php }?>
					</div>
				</div>
				<?php if (!empty($article['tags'])){?>
				<div class="article-tag"> Tag: <?php echo $article['tags']?></div>
				<?php }?>
			</div>
			<a name="comment"></a>
			<div class="article-operation">
				<a href="javascript: void(0)" id="like_add_<?php echo $article['aid']?>" aid="<?php echo $article['aid']?>">喜欢(<span id="like_num_<?php echo $article['aid']?>"><?php echo $article['like']?></span>)</a>
				<?php if (0){?>
				<i class="article-operation-mid">|</i>
				<a href="javascript: void(0)">分享(<?php echo $article['share']?>)</a>
				<i class="article-operation-mid">|</i>
				<a href="javascript: void(0)">收藏(<?php echo $article['collect']?>)</a>
				<?php }?>
				<i class="article-operation-mid">|</i>
				<a href="javascript: void(0)">评论(<?php echo $article['comment']?>)</a>
			</div>
			
			<!-- 评论 -->
			<div class="comment">
				<div class="comment-arrow">
					<em>◆</em>
					<span>◆</span>
				</div>
				<div>
					<form name="form_comment" id="form_comment" action="#comment" method="POST">
					<div>
						<input type="text" name="nick" id="comment_nick" class="comment-nick init-comment-box" value="邮箱或称呼…" />
						<textarea id="comment_input" name="comment" class="comment-input init-comment-box">内容…</textarea>
						<input type="hidden" name="aid" value="<?php echo $article['aid']?>" />
					</div>
					<div class="comment-submit">
						<a href="javascript: void(0)" id="comment_submit"><span>评论</span></a>
					</div>
					</form>
				</div>
			    <div class="comment_lists">
			    	<?php foreach ($comments['comments'] as $comment){?>
			        <dl class="comment_list">
			        	<?php if (0){?>
			            <dt>
			                <a href="#" title="<?php echo $comment['nick']?>"><img src="http://tp3.sinaimg.cn/1346818450/50/5653989144/0" style="width: 38px; height: 38px;"></a>
			            </dt>
			            <?php }?>
			            <dd>
			                <a href="#" title="<?php echo $comment['nick']?>"><?php echo $comment['nick']?></a>
			                <span class="comment-time"><?php echo $comment['addtime']?></span>
			                <p class="comment-cont"><?php echo $comment['comment']?></p>
			            </dd>
			        </dl>
			        <?php }?>
			        <!--分页-->
			        <div class="comment-page">
				        <?php echo $comments['pager']?>
			        </div>
			    </div>
			</div>
		</div>
	</div>
	<?php
	echo View::factory('right')
		->bind('hot_articles', $right['hot_articles'])
		->bind('hot_tags', $right['hot_tags'])
		->bind('new_comments', $right['new_comments'])
	?>
</div>
<?php echo View::factory('footer') ?>
